package org.genntii.warehousesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.genntii.warehousesystem.domain.entity.Cart;
import org.genntii.warehousesystem.domain.vo.CartVO;

import java.math.BigDecimal;
import java.util.List;

public interface CartService extends IService<Cart> {

    void add(int userId, int goodsId, BigDecimal price, int num);

    void del(int id);

    void setNum(int id, int num);

    Cart cartExists(int userId,int goodsId);

    List<CartVO> showAllCart(int userId);


}
